home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4492 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  45 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cs.vu.nl!jalten
  3. From: jalten@cs.vu.nl (Alten JP)
  4. Subject: Re: Newbie: Simple Button Question
  5. Nntp-Posting-Host: kits.cs.vu.nl
  6. References: <4el9ft$h1t@news.xs4all.nl>
  7. Sender: news@cs.vu.nl
  8. Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
  9. Date: Tue, 30 Jan 1996 16:47:41 GMT
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <DM06nI.29y.0.-s@cs.vu.nl>
  12.  
  13. Anthony Moendir (maris@xs4all.nl) wrote:
  14. : Can anyone tell me wat's wrong with this code?
  15. : The button does'n work
  16.  
  17. Will the button not appear, not get the focus,
  18. not appear to be 'pushed', not notify the parent window
  19. or will the function FUNC never be called, while the button
  20. looks like it is being pushed?
  21.  
  22. Maybe you'd want to put the button in the client window 
  23. of the Decorated Frame, since the decorated frame usually
  24. gts a different client windows (default) to put your 
  25. things in...
  26.  
  27. try something like:
  28.  
  29.  //In constructor
  30.  new TButton(ClientWnd, ID_BUTTON, "Do something",   498 , 12, 
  31.     150, 30, FALSE);
  32.  
  33. and try defining your own client window when constructing the
  34. DecoratedFrame.
  35.  
  36. No luck? Write me.
  37.  
  38. Jelle Paul
  39.  
  40. --
  41. +-------------------------------------------------------+
  42. | Jelle Paul Alten                |   jalten@cs.vu.nl   |
  43. | Vrije Universiteit Amsterdam    |                     |
  44. +-------------------------------------------------------+
  45.